home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / bbs_util / mtapvf58.zip / MTA_DPMI.DOC < prev    next >
Text File  |  1994-08-13  |  13KB  |  280 lines

  1. ╔══════════════════════════════                 ┌─────────────────┐
  2. ║ MTA       Make Them Anything                  │    D.I.S.P.     │────┐
  3. ║           Convert Compressed                  │                 │░░░░│
  4. ╟──────────────────────────────                 │                 │░░░░│
  5. ║ (c) 1993  Robert W.van Hoeven                 │ Dutch           │░░░░│
  6. ╟──────────────────────────────                 │   Independent   │░░░░│
  7. ║ Release : 15.58                               │     ShareWare   │░░░░│
  8. ║ Rel.Date: August 14th, 1994                   │       Programmer│░░░░│
  9. ╠══════════════════════════════                 └─────────────────┘░░░░│
  10. ║                                               |    │░░░░░░░░░░░░░░░░░│
  11. ║                                               |    └─────────────────┘
  12. ║                                               |       ┌─────┐        |
  13. ║                                               |       │░░░░░│        |
  14. ║                                               |       └──┬──┘        |
  15. ║                                               |     ┌────┴────┐      |
  16. ║                                               ------││││││ ═══│-------
  17. ║                                                     └─────────┘
  18. ╠═══════════════════════════════
  19. ║ Address: Robert W. van Hoeven
  20. ║          PO. Box 131
  21. ║          1170 AC  Badhoevedorp
  22. ║          Nederland / Holland
  23. ╚═══════════════════════════════
  24.  
  25.  ┌───────┬─────────────────────────────────────────────────────────────┐
  26.  │   0   │ Table of contents                                           │
  27.  └───────┴─────────────────────────────────────────────────────────────┘
  28.  
  29.  1 ----    MTA protected-mode version (MTADPMI.EXE)
  30.   1.1      Files contained in this archive
  31.   1.2      Running MTA in protected-mode
  32.   1.3      Protected Mode and Memory
  33.     1.3.1  DPMIINST
  34.     1.3.2  DPMIMEM
  35.     1.3.2  RTMRES
  36.     1.3.2  Extended Memory
  37.   1.4      Running MTADPMI from Windows
  38.   1.5      Running MTADPMI in Windows Standard Mode
  39.   1.6      Running MTADPMI from a Windows DOS prompt
  40.   1.7      Controlling the Amount of memory the Run-Time Manager uses
  41.   1.8      Important note for Borland C++ and Paradox 4.0 users
  42.   1.9      Important note for multi-tasking users
  43.  
  44.  ┌───────┬─────────────────────────────────────────────────────────────┐
  45.  │   1   │ MTA protected-mode version (MTADPMI.EXE)                    │
  46.  └───────┴─────────────────────────────────────────────────────────────┘
  47.  
  48.  1.1 Files contained in this archive
  49.  ────────────────────────────────────
  50.  MTADPMI.EXE  (the  protected-mode  version  of  MTA.EXE) can be used on
  51.  80286 and higher  machines. To run  MTADPMI, you need  some extra files
  52.  which  are  included  in  a  separate  archive. You should extract this
  53.  separate  archive  (MTA__RTL.???)  first  before  you continue with the
  54.  remainder of this document.
  55.  
  56.  The MTA__RTL.??? archive contains the following files:
  57.  
  58.  RTM.EXE      - the Borland International DPMI Run-Time Manager
  59.  RTMRES.EXE   - the Borland International DPMI Resident Run-Time Manager
  60.  DPMI16BI.OVL - The Borland International DPMI Overlay File
  61.  DPMIINST.EXE - Configures RTM.EXE to your system specifications
  62.  
  63.  
  64.  1.2 Running MTA in protected-mode
  65.  ────────────────────────────────────
  66.  When you run MTA as  a protected-mode application (use the  MTADPMI.EXE
  67.  version  you  obtained),  you  must  ensure that DPMI16BI.OVL (the DPMI
  68.  server), and RTM.EXE (the run-time manager) are present in the  current
  69.  directory, the same directory as the application, or on the DOS path.
  70.  
  71.  
  72.  1.3 Protected Mode and Memory
  73.  ────────────────────────────────────
  74.  A DOS protected-mode program  uses DPMI (DOS Protected  Mode Interface)
  75.  to run  in protected  mode which  gives the  application access  to all
  76.  your  computer's  memory.  With  the  exceptions  outlined  in the next
  77.  paragraphs  below,  the  DOS  protected-mode  technology  is completely
  78.  transparent  and  no  extra  steps  are  necessary  in  order  to run a
  79.  protected-mode application.
  80.  
  81.  
  82.  1.3.1 DPMIINST
  83.  ────────────────────────────────────
  84.  One such exception might be  when you run a protected-mode  program for
  85.  the  very  first  time  on  a  286-based  system.  The  protected  mode
  86.  technology uses  an internal  database which  contains various  machine
  87.  characteristics to determine how to enable protected mode operation  on
  88.  your system, and configures itself accordingly. If you have a  computer
  89.  with  an  older  80286  microprocessor,   your  system  might  not   be
  90.  recognized.  You'll  see   this  message  when   you  try  to   run   a
  91.  protected-mode application:
  92.  
  93.  'Machine not in database (RUN DPMIINST)'
  94.  
  95.  If you  get this  message, simply  run the  DPMIINST program  by typing
  96.  DPMIINST at the DOS prompt and following the program's instructions.
  97.  
  98.  DPMIINST runs your machine through  a series of tests to  determine the
  99.  best  way  of  enabling  protected  mode,  and automatically configures
  100.  accordingly.  Once  you  have  run  DPMIINST,  you won't have to run it
  101.  again.
  102.  
  103.  Some  memory  managers,  device  drivers,  and  memory-resident   (TSR)
  104.  programs can interfere with DPMIINST's ability to analyze your  system.
  105.  If  DPMIINST  fails,  try  temporarily  disabling  or  removing   these
  106.  programs.  That  gives  DPMIINST  the  unrestricted  access it needs to
  107.  determine the best way to enter protected mode.
  108.  
  109.  Note that  running DPMIINST.EXE  will never  be required  on any system
  110.  running HIMEM (or equivalent)  or on any system  based on an 80386  (or
  111.  later) processor.
  112.  
  113.  
  114.  1.3.2 DPMIMEM
  115.  ────────────────────────────────────
  116.  By default, the DPMI interface allocates all available extended  memory
  117.  for its own use.  If you don't want  all of the available  memory to be
  118.  taken by the  DPMI kernel, you  can set a  DOS environment variable  to
  119.  specify  the  maximum  amount  of  memory  to use. This variable can be
  120.  entered directly  at the  DOS prompt  or inserted  in your AUTOEXEC.BAT
  121.  file, using this syntax:
  122.  
  123.  SET DPMIMEM=MAXMEM nnnn
  124.  
  125.  where nnnn is the amount of memory in kilobytes.
  126.  
  127.  For example, if you have a system with 4MB and want the DPMI kernel  to
  128.  use only 2MB of it, leaving  the other 2MB alone, the DPMIMEM  variable
  129.  would be set as follows:
  130.  
  131.  SET DPMIMEM=MAXMEM 2048
  132.  
  133.  Some memory managers, like QEMM  or 386^Max, allow allocating the  same
  134.  area  of  memory  as  either  extended  or  expanded  and  many   older
  135.  applications can use only expanded  memory (EMS). By using the  DPMIMEM
  136.  DOS environment variable  to limit the  amount of extended  memory used
  137.  by  the  DPMI  server,  your  system  will  still  have expanded memory
  138.  available for use by older applications.
  139.  
  140.  
  141.  1.3.2 RTMRES
  142.  ────────────────────────────────────
  143.  RTMRES preloads the protected-mode  system. Preloading the DPMI  server
  144.  lets you load  a protected-mode program  slightly faster.   RTMRES will
  145.  start a program  if you specify  a program name  as a parameter.  If no
  146.  parameter  is  specified,  RTMRES  will  run  a DOS shell. Type EXIT to
  147.  close the shell.
  148.  
  149.  RTMRES  is  especially  useful  if   you  start,  exit,  and  start   a
  150.  protected-mode  program  frequently.  Normally,  every  time  you run a
  151.  protected-mode application, the  DPMI server is  loaded. If you've  run
  152.  RTMRES   previously,   the   server   is   already   present,  and  the
  153.  protected-mode application loads faster.
  154.  
  155.  
  156.  1.3.2 Extended Memory
  157.  ────────────────────────────────────
  158.  A protected-mode  application interacts  with the  DPMI server  through
  159.  Borland's  run-time  manager  (RTM.EXE).  By  default, a protected-mode
  160.  application uses all the extended memory reserved by the DPMI kernel.
  161.  
  162.  
  163.  1.4 Running MTADPMI from Windows
  164.  ────────────────────────────────────
  165.  A DOS protected-mode program will run in Windows in 386 enhanced  mode.
  166.  To configure the amount of memory available to the application,  create
  167.  a Windows PIF file. To learn  more about PIF files, see your  Microsoft
  168.  Windows User's Guide.
  169.  
  170.  
  171.  1.5 Running MTADPMI in Windows Standard Mode
  172.  ────────────────────────────────────────────
  173.  In order to  run a protected-mode  program from Windows  standard-mode,
  174.  you must set the DPMIMEM DOS environment variable and run RTMRES  (both
  175.  are described above)  before running Windows.   Make sure your  DPMIMEM
  176.  setting leaves enough physical memory for Windows to operate.
  177.  
  178.  Note that once you've run RTMRES,  you won't be able to run  Windows in
  179.  386 enhanced mode until you exit the RTMRES shell (by typing EXIT at  a
  180.  DOS prompt).
  181.  
  182.  
  183.  1.6 Running MTADPMI from a Windows DOS prompt
  184.  ─────────────────────────────────────────────
  185.  To run a DOS protected-mode application from a Windows DOS prompt,  you
  186.  must  first  modify  the  DOSPRMPT.PIF  file  found  in  your   Windows
  187.  directory  so  that  the  protected-mode  program  will  be able to use
  188.  extended memory.
  189.  
  190.  Using the Windows PIF editor, open the DOSPRMPT.PIF file, and  indicate
  191.  the amount of  extended memory you  want the protected-mode  program to
  192.  use. If you are  unsure how to use  the PIF editor, see  your Microsoft
  193.  Windows User's Guide.
  194.  
  195.  
  196.  1.7 Controlling the Amount of memory the Run-Time Manager uses
  197.  ──────────────────────────────────────────────────────────────
  198.  The run-time manager  attempts to free  as much conventional  memory as
  199.  possible (by moving  moveable memory blocks  into extended memory,  for
  200.  example) before starting an application. No attempt is made to  release
  201.  extended memory,  however. Therefore,  if you  are going  to run  other
  202.  protected-mode  applications  that  don't  use  the  run-time   manager
  203.  (Paradox 4.0,  for example),  use the  RTM DOS  environment variable to
  204.  control the run-time manager's allocation of memory.
  205.  
  206.  Use the DOS command  line to add the  RTM environment variable to  your
  207.  system's DOS environment. Here is the syntax:
  208.  
  209.  SET RTM=[option nnnn]
  210.  
  211.  The  following  table  lists  the  options  you  can use. nnnn can be a
  212.  decimal number or a hex number in the form of xAB54 or xab54.
  213.  
  214.  Option          Description
  215.  -------------------------------------------------------------
  216.  EXTLEAVE nnnn   Always   leave  at  least   nnnn kilobytes of  extended
  217.                  memory available. The default value is 640K.
  218.  
  219.  EXTMAX nnnn     Don't  allocate more than  nnnn kilobytes of   extended
  220.                  memory. The default value  is 4 gigabytes. In  Windows,
  221.                  the default value is one-half the available memory.
  222.  
  223.  EXTMIN nnnn     If  fewer   than  nnnn kilobytes  are available   after
  224.                  applying EXTMAX and EXTLEAVE limits, terminate with  an
  225.                  Out of Memory message. The default value is zero.
  226.  
  227.  REALLEAVE nnnn  Always leave at  least nnnn paragraphs  of real  memory
  228.                  available.   The   default   value   is   64K  or  4096
  229.                  paragraphs.
  230.  
  231.  REALMAX  nnnn   Don't  allocate  more   than  nnnn paragraphs of   real
  232.                  memory.  The  default  value  is  1  megabyte or 65,535
  233.                  paragraphs.
  234.  
  235.  REALMIN nnnn    If fewer   than nnnn  paragraphs are  available   after
  236.                  applying REALMAX and  REALLEAVE, terminate with  an Out
  237.                  of Memory message. The default value is zero.
  238.  
  239.  The following DOS  command limits RTM  to 2M bytes  of extended memory,
  240.  and ensures that 128K bytes of real memory are left unallocated:
  241.  
  242.  SET RTM=EXTMAX 2048 REALLEAVE 8192
  243.  
  244.  
  245.  1.8 Important note for Borland C++ and Paradox 4.0 users
  246.  ──────────────────────────────────────────────────────────────
  247.  The  DPMILOAD.EXE  and  DPMI16BI.OVL  files  provided  in  this package
  248.  replace the  older ones  that came  with Paradox  4.0 and  BC++ 3.0  or
  249.  later. Delete  or rename  the older  versions and  make sure  the newer
  250.  ones are on  your DOS path  (both Paradox and  BC will search  the path
  251.  and find the newer versions).
  252.  
  253.  If  you  plan  to  shell  out  from  Paradox  or  BC++  to  run another
  254.  protected-mode application, first limit  the amount of extended  memory
  255.  used  by  Paradox  or  BC++.  For  Paradox,  use its /extk command-line
  256.  parameter; and for  BC++, use its  /x command-line parameter.  Refer to
  257.  the Paradox or  BC++ documentation for  more information on  the use of
  258.  command-line options.
  259.  
  260.  
  261.  1.9 Important note for multi-tasking users
  262.  ──────────────────────────────────────────────────────────────
  263.  If you have loaded SHARE.EXE or  any equivalent (like the internal OS/2
  264.  sharing), you MUST keep  MTADPMI.EXE READ-ONLY. If you don't use any of
  265.  these  programs  (e.g. you  are not running under DV, Windows, OS/2 and
  266.  so on), you can make MTADPMI.EXE a normal file in the following way:
  267.  
  268.  ATTRIB -R MTADPMI.EXE
  269.  
  270.  If  the MTADPMI.EXE (by accident) is converted to a normal file WITHOUT
  271.  the read-only attribute and you use any kind of sharing in your system,
  272.  you  need to change MTADPMI.EXE back to read-only in the following way:
  273.  
  274.  ATTRIB +R MTADPMI.EXE
  275.  
  276.  [------------------------ END OF DOCUMENT ----------------------------]
  277.